const name = 'UserSearchLocal'
// 设置用户搜索记录
export const setUserSearch = (arr) => {
  localStorage.setItem(name, JSON.stringify(arr))
}
// 获取用户搜索记录
export const getUserSearch = () => {
  const temp = localStorage.getItem(name)
  return temp ? JSON.parse(temp) : []
}
// 删除用户搜索记录
export const delUserSearch = () => {
  localStorage.removeItem(name)
}
